import request from '@/config/axios'

export interface AccessPageVO {
  id: number
  siteId: number
  accessUrl: string
  pvCount: number
  uvCount: number
  ipCount: number
  dateString: string
  accessType: number
}

// 查询访问受访页面列表
export const getAccessPagePage = async (params) => {
  return await request.get({ url: '/cms/accessstatistic/access-page-stat', params })
}
// 查询访问入口页面列表
export const getEntryPagePage = async (params) => {
  return await request.get({ url: '/cms/accessstatistic/entry-page-stat', params })
}
// 查询访问趋势
export const getTrendStat = async (params) => {
  return await request.get({ url: '/cms/accessstatistic/trend-stat', params })
}
// 查询访问来源
export const getSourceStatPage = async (params) => {
  return await request.get({ url: '/cms/accessstatistic/source-stat', params })
}
// 查询新老访客统计数据
export const getVisitorStat = async (params) => {
  return await request.get({ url: '/cms/accessstatistic/visitor-stat', params })
}
// 查询来源类型统计数据
export const getSourceTypeStat = async (params) => {
  return await request.get({ url: '/cms/accessstatistic/source-type-stat', params })
}
// 查询地区统计的国家统计数据
export const getCountryStat = async (params) => {
  return await request.get({ url: '/cms/accessstatistic/country-stat', params })
}
//查询地区统计的省份统计数据
export const getProvinceStat = async (params) => {
  return await request.get({ url: '/cms/accessstatistic/province-stat', params })
}

//查询访问设备统计数据
export const getDeviceStat = async (params) => {
  return await request.get({ url: '/cms/accessstatistic/device-stat', params })
}
//查询操作系统统计数据
export const getOsStat = async (params) => {
  return await request.get({ url: '/cms/accessstatistic/os-stat', params })
}
//查询浏览器统计数据
export const getBrowserStat = async (params) => {
  return await request.get({ url: '/cms/accessstatistic/browser-stat', params })
}
